<?php
/**
 * 
 * 
 * @author mattevigo
 * 
 * @project sandrodelpistoia.com
 * @created 07/apr/2009
 */
require '../config.php';
require_once SESSION_INCLUDE;
require_once DB;
require_once GALLERY_INCLUDE;

	if(!isset($_GET['id'])) #user_id
	{
		echo "E' necessario selezionare una galleria";
		exit();
	}
	
	$db = get_session_db($db_config);
	
	header("content-type: application/x-javascript");
	echo get_gallery_json_list($db, $_GET['id']);
?>
